package com.itcast.springboot.waste_recovery.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.relational.core.mapping.Table;

/**
 * <p>
 * 订单
 * </p>
 *
 * @author 小破烂
 * @since 2020-08-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Order对象", description="订单")
@TableName(value = "order_message")
public class Order implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "订单id")
      @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    @ApiModelProperty(value = "订单状态：0：表示订单未接，1：订单已接，2：订单已完成")
    private Integer orderStatus;

    @ApiModelProperty(value = "订单编号")
    private String orderNum;

    @ApiModelProperty(value = "订单预约的最早时间")
    //出参格式化
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date orderEtime;

    @ApiModelProperty(value = "订单预约的最晚时间")
    //出参格式化
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date orderLtime;

    @ApiModelProperty(value = "订单大概重量，这个是用户预约的时候填写的")
    private Integer orderAboutWeight;

    @ApiModelProperty(value = "订单正式重量，这个是订单完成的时候，员工输入的")
    private Float orderRealWeight;

    @ApiModelProperty(value = "订单发起的用户id")
    private Integer orderCustomerId;

    @ApiModelProperty(value = "订单负责的员工ID")
    private Integer orderStaffId;

    @ApiModelProperty(value = "订单的服务评论，订单结束时用户添加的,1-5分别代表1-5颗星")
    private Integer orderServiceEvaluation;

    @ApiModelProperty(value = "订单的态度评论，订单结束时用户添加的,1-5分别代表1-5颗星")
    private Integer orderAttitudeEvaluation;

    @ApiModelProperty(value = "订单总价格")
    private Float orderTotalPrice;

    @ApiModelProperty(value = "订单地址id")
    private Integer orderAddressId;
}
